package com.bomberman.environment;

import info.gridworld.actor.Actor;
import info.gridworld.actor.Rock;
import info.gridworld.grid.BoundedGrid;
import info.gridworld.grid.Location;

import java.awt.Color;
import java.util.ArrayList;

public class MazeRand
{
	MazeRand(BombWorld w)
	{
		
		w.setGrid(new BoundedGrid<Actor>(10,10));
		
		int k = 100;
		
		for(int i=0; i<k/4; i++)
		w.add(w.randLoc(), new Rock(Color.GRAY));

		w.teleLocs = new ArrayList<Location>();
		Location loc = w.randLoc();
		w.add(loc,new Tele(w, w.teleLocs, "randTele", loc));
		loc = w.randLoc();
		w.add(loc,new Tele(w, w.teleLocs, "randTele", loc));
		
		w.add(w.randLoc(), w.P1);
		w.add(w.randLoc(), w.P2);
	}
}